import { model, Model, modelAction, prop } from "mobx-keystone";

// RootStore 结构设计
@model("max/root-store")
export class RootStore extends Model({
  count: prop<number>(0).withSetter(),
}) {
  //
  @modelAction
  add() {
    this.count++;
  }
}
